<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 表单验证规则配置文件
 * @author wuliang
 */

$config = array(
    'article' => array(
        array(
            'field' => 'title',
            'label' => 'title',
            'rules' => 'trim|required|min_length[5]',
        ),
        array(
            'field' => 'type',
            'label' => 'type',
            'rules' => 'required|integer'
        ),
        array(
            'field' => 'cid',
            'label' => 'category',
            'rules' => 'integer'
        ),
        array(
            'field' => 'info',
            'label' => 'summary',
            'rules' => 'trim|required|max_length[500]'
        ),
        array(
            'field' => 'content',
            'label' => 'content',
            'rules' => 'trim|required|max_length[50000]'
        )
    ),
);